import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn } from "typeorm";
@Entity()
export class User {
    @PrimaryGeneratedColumn()
    id: number

    @Column()
    username: string

    @Column({ select: true, comment: '描述', default: '123456' })
    desc: string

    @CreateDateColumn({ type: 'timestamp' })
    createTime: Date

    // @Column('simple-json')
    // json: { realname: string, name: number }
}